
package com.fx.apartment.modules.activity.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fx.apartment.common.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 参与活动实体类
 *
 * @author QinXueFeng
 * @since 2021-04-19
 */
@Data
@TableName("ctn_activity_participation")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "ActivityParticipation对象", description = "参与活动")
public class ActivityParticipation extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	* 活动id
	*/
		@ApiModelProperty(value = "活动id")
		@NotNull(message = "活动id 不能为空")
		private Long activityId;
	/**
	* 封面地址
	*/
		@ApiModelProperty(value = "封面地址")
		@NotEmpty(message = "封面地址 不能为空")
		private String coverUrl;
	/**
	* 封面地址
	*/
		@ApiModelProperty(value = "屋内详情地址")
		@NotEmpty(message = "屋内详情地址 不能为空")
		private String resourcesUrl;
	/**
	* 描述
	*/
		@ApiModelProperty(value = "描述")
		private String describe;
	/**
	* 所属公寓
	*/
		@ApiModelProperty(value = "所属公寓")
		private String apartment;
	/**
	* 所属单元
	*/
		@ApiModelProperty(value = "所属单元")
		private String unit;
	/**
	* 所属楼层
	*/
		@ApiModelProperty(value = "所属楼层")
		private String storey;
	/**
	* 所属房间
	*/
		@ApiModelProperty(value = "所属房间")
		private String room;
	/**
	* 投票数
	*/
		@ApiModelProperty(value = "投票数")
		private Integer votesNum;
	/**
	* 规则说明
	*/
		@ApiModelProperty(value = "规则说明")
		private String ruleNote;
	/**
	 * 评分
	 */
		@ApiModelProperty(value = "评分")
		private String score;
	/**
	 * 编号
	 */
		@ApiModelProperty(value = "编号")
		private String identifier;
}
